package getmoney

import "net/http"

func DpyYmjAPI(w http.ResponseWriter, r *http.Request) {
	w.Write([]byte("段芃羽和袁梦涓天下第一好"))
}
func GetMoney(chengben float32, shijian int) (yingye float32, yuanying string, kaixin bool) {
	if chengben < 120 {
		if shijian > 12 {
			yingye = chengben * 5
			yingye = yingye + float32(shijian)*3
			return yingye, "时间充足", true
		} else {
			yingye = chengben * 3
			return yingye, "时间较少", false
		}
	}
	if chengben > 500 {
		if shijian > 10 {
			yingye = chengben * 4
			yingye = yingye + float32(shijian)*2
		} else {
			yingye = chengben * 3
		}
	}
	return yingye, "不知道原因", true
}
